import axios from '../axios'
export default class contract {
  static async getCarManageList(params) { //车辆管理  车辆列表
    let res = await axios.post('/business/carManage/list', params)
    return res.data
  }
  static async myGetCarType(sort) { //获取车型种类
    let res = await axios.get(`/business/carManage/getCarType?sort=${sort}`)
    return res.data
  }
  static async myGetCustomerList(params) { //车辆管理  车主列表
    let res = await axios.post(`/business/admission/getCustomerList`, params)
    return res.data
  }
  static async myCarManageInsert(params) { //车辆管理  新增车辆
    let res = await axios.post(`/business/carManage/insert`, params)
    return res.data
  }
  static async myCarManageUpdate(params) { //车辆管理  修改车辆
    let res = await axios.post(`/business/carManage/update`, params)
    return res.data
  }
  static async myCarManageDetail(id) { //车辆管理  车辆详情
    let res = await axios.get(`/business/carManage/detail?id=${id}`)
    return res.data
  }
  static async myCarManageDelete(id) { //车辆管理  删除车辆
    let res = await axios.get(`/business/carManage/delete?id=${id}`)
    return res.data
  }
  static async myGetSpaceListByCarId(id) { //车辆管理  车辆关联的车位列表
    let res = await axios.get(`/business/carManage/getSpaceListByCarId?id=${id}`)
    return res.data
  }
  static async myGetResidentialCarList(params) { //车辆信息 列表
    let res = await axios.post(`/business/carManage/getResidentialCarList`,params)
    return res.data
  }
  static async myManualOperation(params) { //车辆信息 手动禁用/启用
    let res = await axios.post(`/business/carManage/manualOperation`,params)
    return res.data
  }
  static async myGetSpaceListByParam(carId,residentialId) { //车辆信息 获取小区下此车辆的车位列表
    let res = await axios.get(`/business/carManage/getSpaceListByParam?carId=${carId}&residentialId=${residentialId}`)
    return res.data
  }
  static async myUnbindSpaceAndCar(carId,spaceId) { //车辆信息 解绑
    let res = await axios.get(`/business/carManage/unbindSpaceAndCar?carId=${carId}&spaceId=${spaceId}`)
    return res.data
  }
  static async myGetRegionListForCarSpace() { //地区列表
    let res = await axios.post(`/business/residentialQuarters/getRegionListForCarSpace`,{})
    return res.data
  }
  static async myGetcityList(code) { //总的地区列表
    let res = await axios.get(`/business/dictionary/queryAreaList?fatherCode=${code}`)
    return res.data
  }
  static async myGetListForCarSpace(params) { //车位管理 小区列表
    let res = await axios.post(`/business/residentialQuarters/getListForCarSpace`,params)
    return res.data
  }
  static async myParkingSpaceList(params) { //车位管理 车位列表
    let res = await axios.post(`/business/parkingSpace/list`,params)
    return res.data
  }
  static async myGetCompanyInfoAccurately(params) { //车位管理 机构精准查询
    let res = await axios.post(`/business/parkingSpace/getCompanyInfoAccurately`,params)
    return res.data
  }
  static async myGetAppUserInfoAccurately(params) { //车位管理 用户精准查询
    let res = await axios.post(`/business/parkingSpace/getAppUserInfoAccurately`,params)
    return res.data
  }
  static async myParkingSpaceInsert(params) { //车位管理 新增车位
    let res = await axios.post(`/business/parkingSpace/insert`,params)
    return res.data
  }
  static async myParkingSpaceDetail(id) { //车位管理 车位详情
    let res = await axios.get(`/business/parkingSpace/detail?id=${id}`)
    return res.data
  }
  static async myParkingSpaceUpdate(params) { //车位管理 车位详情
    let res = await axios.post(`/business/parkingSpace/update`,params)
    return res.data
  }
  static async myParkingSpaceDelete(id) { //车位管理 删除车位
    let res = await axios.get(`/business/parkingSpace/delete?id=${id}`)
    return res.data
  }
  static async myGetCarInfoAccurately(params) { //车位管理 车辆精准查询,绑定车辆的弹窗
    let res = await axios.post(`/business/parkingSpace/getCarInfoAccurately`,params)
    return res.data
  }
  static async myGetBindingCarList(params) { //车位管理 车位已绑定车辆列表
    let res = await axios.post(`/business/parkingSpace/getBindingCarList`,params)
    return res.data
  }
  static async myBindingCar(params) { //车位管理 绑定车辆
    let res = await axios.post(`/business/parkingSpace/bindingCar`,params)
    return res.data
  }
  static async myUnBindingCar(params) { //车位管理 解绑车辆
    let res = await axios.post(`/business/parkingSpace/unBindingCar`,params)
    return res.data
  }
  static async myGetResidentialList(params) { //车位租赁  社区列表
    let res = await axios.post(`/business/parkingSpaceRent/getResidentialList`,params)
    return res.data
  }
  static async myGetSpaceListByResidentialId(params) { //车位租赁  车位列表
    let res = await axios.post(`/business/parkingSpaceRent/getSpaceListByResidentialId`,params)
    return res.data
  }
  static async myParkingSpaceRentInsert(params) { //车位租赁  新增租赁
    let res = await axios.post(`/business/parkingSpaceRent/insert`,params)
    return res.data
  }
  static async myParkingSpaceRentDetail(id) { //车位租赁  租赁详情
    let res = await axios.get(`/business/parkingSpaceRent/detail?id=${id}`)
    return res.data
  }
  static async myParkingSpaceRentList(params) { //车位租赁  租赁列表
    let res = await axios.post(`/business/parkingSpaceRent/list`,params)
    return res.data
  }
  static async myParkingSpaceRentUpdate(params) { //车位租赁  租赁修改
    let res = await axios.post(`/business/parkingSpaceRent/update`,params)
    return res.data
  }

  static async myRelieveParkingSpaceRent(id) { //车位租赁  租赁修改
    let res = await axios.get(`/business/parkingSpaceRent/relieveParkingSpaceRent?id=${id}`)
    return res.data
  }

  static async myParkingSpaceTransferList(params) { //车位过户  列表
    let res = await axios.post(`/business/parkingSpaceTransfer/list`,params)
    return res.data
  }

  static async myParkingSpaceTransferInsert(params) { //车位过户  新增
    let res = await axios.post(`/business/parkingSpaceTransfer/insert`,params)
    return res.data
  }

  static async myParkingSpaceTransferUpdate(params) { //车位过户  修改
    let res = await axios.post(`/business/parkingSpaceTransfer/update`,params)
    return res.data
  }

  static async myParkingSpaceTransferDetail(id) { //车位过户  详情
    let res = await axios.get(`/business/parkingSpaceTransfer/detail?id=${id}`)
    return res.data
  }

  static async myParkingSpaceCostList(params) { //车位管理费  列表
    let res = await axios.post(`/business/spaceManagement/list`,params)
    return res.data
  }

  static async myParkingSpaceCostInsert(params) { //车位管理费  新增
    let res = await axios.post(`/business/spaceManagement/insert`,params)
    return res.data
  }

  static async myParkingSpaceCostUpdate(params) { //车位管理费  修改
    let res = await axios.post(`/business/spaceManagement/update`,params)
    return res.data
  }

  static async myParkingSpaceCostDetail(id) { //车位管理费  详情
    let res = await axios.get(`/business/spaceManagement/detail?id=${id}`)
    return res.data
  }

  static async myParkingSpaceCostSpaceListByResidentialId(params) { //车位管理费  车位列表
    let res = await axios.post(`/business/spaceManagement/getSpaceListByResidentialId`,params)
    return res.data
  }

  // 入住审批 相关
  static async myCustomerRoomApprovalList(params) { //入住审批列表
    let res = await axios.post(`/business/customerRoomApproval/list`,params)
    return res.data
  }
  static async myGetApprovalInfo(id) { //入住审批   查看申请信息
    let res = await axios.get(`/business/customerRoomApproval/getApprovalInfo?id=${id}`)
    return res.data
  }
  static async myGetCustomerListInRoom(id) { //入住审批   查看房屋成员
    let res = await axios.get(`/business/customerRoomApproval/getCustomerListInRoom?id=${id}`)
    return res.data
  }
  static async myCustomerRoomApprovalApproval(params) { //入住审批   审批同意和拒绝
    let res = await axios.post(`/business/customerRoomApproval/Approval`,params)
    return res.data
  }
}
